package com.yuelife.service.service;

import com.github.pagehelper.PageInfo;
import com.yuelife.service.pojo.SAddress;

import java.util.List;

/****
 * @Author:admin
 * @Description:SAddress业务层接口
 * @Date 2019/6/14 0:16
 *****/
public interface SAddressService {

    /***
     * SAddress多条件分页查询
     * @param sAddress
     * @param page
     * @param size
     * @return
     */
    PageInfo<SAddress> findPage(SAddress sAddress, int page, int size);

    /***
     * SAddress分页查询
     * @param page
     * @param size
     * @return
     */
    PageInfo<SAddress> findPage(int page, int size);

    /***
     * SAddress多条件搜索方法
     * @param sAddress
     * @return
     */
    List<SAddress> findList(SAddress sAddress);

    /***
     * 删除SAddress
     * @param id
     */
    void delete(Integer id);

    /***
     * 修改SAddress数据
     * @param sAddress
     */
    void update(SAddress sAddress);

    /***
     * 新增SAddress
     * @param sAddress
     */
    void add(SAddress sAddress);

    /**
     * 根据ID查询SAddress
     * @param id
     * @return
     */
     SAddress findById(Integer id);

    /***
     * 查询所有SAddress
     * @return
     */
    List<SAddress> findAll();
}
